home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Kara Collection
/
Kara Collection v3.0 (1996-09-12)(Cloanto).iso
/
utilities
/
h
/
0
/
6
/
2
/
rexx
/
help.ctrx
< prev
next >
Wrap
Text File
|
1996-05-05
|
2KB
|
78 lines
/* ColorType Amiga Rexx script - Copyright © 1996 Cloanto Italia srl */
/* $VER: Help.ctrx 1.0 */
/**
This script displays a list of all Rexx commands and options for ColorType.
The script can be executed with an argument, which is passed on to the
"Help" command, and which causes instructions to be displayed either for
the internal commands and options, or for the I/O modules, or for both.
*/
IF ARG(1, EXISTS) THEN
PARSE ARG CTPORT topic output '"' title '"'
ELSE
CTPORT = 'COLORTYPE'
IF ~SHOW('P', CTPORT) THEN DO
IF EXISTS('ColorType:ColorType') THEN DO
ADDRESS COMMAND 'Run >NIL: ColorType:ColorType'
DO 30 WHILE ~SHOW('P',CTPORT)
ADDRESS COMMAND 'Wait >NIL: 1 SEC'
END
END
ELSE DO
SAY "ColorType could not be loaded."
EXIT 10
END
END
IF ~SHOW('P', CTPORT) THEN DO
SAY 'ColorType Rexx port could not be opened.'
EXIT 10
END
ADDRESS VALUE CTPORT
OPTIONS RESULTS
OPTIONS FAILAT 10000
IF output = 'GUI' THEN DO
Help topic
helptext = RESULT
IF topic = 'Command' THEN DO
Version 'REXX'
helptext = 'Port Name: 'CTPORT '0a'X || 'Rexx Version: 'RESULT '0a0a'X || helptext
END
pos = 1
DO FOREVER
pos = INDEX(helptext, '"', pos)
IF pos = 0 THEN
BREAK
helptext = INSERT('"', helptext, pos)
pos = pos + 2
END
RequestNotify '"'title'" "'helptext'" SCROLL'
END
ELSE DO
Version 'REXX'
IF RESULT < 1 THEN DO
errmess = 'This script requires a newer_version of ColorType.'
SAY errmess
RequestNotify 'PROMPT="'errmess'"'
EXIT 10
END
SAY '-- ColorType Rexx Version ' RESULT '--' '0a'X
Help
SAY RESULT
SAY '0a0a'X'-- Available I/O Modules --' '0a'X
Help IOFORMAT
SAY RESULT
END